package net.lab1024.sa.admin.module.business.yct.yctTeeth.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 聊天信息 实体类
 *
 * @Author zhangben
 * @Date 2024-12-20 11:07:08
 * @Copyright 20241218
 */

@Data
@TableName("dialogue")
public class DialogueEntity {

    /**
     * 对话id
     */
    @TableId(type = IdType.AUTO)
    private Integer dialogueId;

    /**
     * 发送方
     */
    private Integer senderId;

    /**
     * 接收方
     */
    private Integer receiverId;

    /**
     * 内容
     */
    private String details;

    /**
     * 时间
     */
    private LocalDateTime timestamp;

    /**
     * 1已读2未读
     */
    private Integer isRead;

}
